import request from "@/utils/request.js";

// 1. 专题列表
export const specialList = (params) =>
  request({
    url: "/api/topic/list",
    params,
  });
// 2.专题==>专题详情信息;
//  /api/topic/detail
export const specialDetail = (params) =>
  request({
    url: "/api/topic/detail",
    params,
  });
// 3.评论列表
export const leaningMsg = (params) =>
  request({
    url: "/api/comment/list",
    params,
  });
// 4.发布留言
export const detailPost = (data) =>
  request({
    method: "POST",
    url: "/api/comment/post",
    data,
  });
// 留言总数查询
// /api/comment/count
export const getCommentCount = (params)=>request({
    url:"/api/comment/count",
    params
})
